var http = require('http')
var server = http.createServer()
server.on('request',function(request,response){
  console.log('收到客户端请求，请求路径是：' + request.url)
  var url = request.url
  if(url === '/')
  {
    response.end('welcome')
  }
  else if(url === '/ui')
  {
    response.end('welcome ui')
  }
  else
  {
    response.end('NOT')
  }
})
server.listen(3000,function(){
  console.log('服务器启动成功了，可以通过http://127.0.0.1:3000/ 进行访问')
})